home *** CD-ROM | disk | FTP | other *** search
- on westup
- global ppl, mnv, fxpath, bullets, blty, bltx, bltsprite, bltwich
- if the keyCode > 122 then
- case the keyCode of
- 123:
- set the member of sprite getAt(ppl, 1) to member(43, 1)
- 124:
- set the member of sprite getAt(ppl, 1) to member(43, 1)
- 125:
- set the member of sprite getAt(ppl, 1) to member(37, 1)
- 126:
- set the member of sprite getAt(ppl, 1) to member(36, 1)
- end case
- setAt(mnv, 1, 1)
- else
- if (the keyCode = 49) and (getAt(mnv, 1) = 1) then
- case the memberNum of sprite getAt(ppl, 1) of
- 43:
- set the member of sprite getAt(ppl, 1) to member(44, 1)
- 37:
- set the member of sprite getAt(ppl, 1) to member(38, 1)
- 36:
- set the member of sprite getAt(ppl, 1) to member(49, 1)
- end case
- sound playFile 1, fxpath & "mashot.aif"
- setAt(mnv, 1, 6)
- h = 1
- repeat while (h <> "ok") and (h <> "notok")
- if the loc of sprite (49 + h) = point(690, 490) then
- setAt(bltsprite, count(bltx) + 1, 49 + h)
- h = "ok"
- next repeat
- end if
- if h = 16 then
- h = "notok"
- next repeat
- end if
- h = h + 1
- end repeat
- if sprite(10).visible = 1 then
- if the memberNum of sprite getAt(ppl, 1) <> 38 then
- h = "notok"
- end if
- end if
- if h = "ok" then
- setAt(bltwich, count(bltx) + 1, "good")
- if (the memberNum of sprite getAt(ppl, 1) = 44) and (sprite(getAt(ppl, 1)).flipH = 1) then
- setAt(bltx, count(bltx) + 1, 20)
- setAt(blty, count(blty) + 1, 0)
- set the locH of sprite getAt(bltsprite, count(bltx)) to the locH of sprite getAt(ppl, 1)
- set the locV of sprite getAt(bltsprite, count(bltx)) to the locV of sprite getAt(ppl, 1) - 40
- else
- if (the memberNum of sprite getAt(ppl, 1) = 44) and (sprite(getAt(ppl, 1)).flipH = 0) then
- setAt(bltx, count(bltx) + 1, -20)
- setAt(blty, count(blty) + 1, 0)
- set the locH of sprite getAt(bltsprite, count(bltx)) to the locH of sprite getAt(ppl, 1)
- set the locV of sprite getAt(bltsprite, count(bltx)) to the locV of sprite getAt(ppl, 1) - 40
- else
- if the memberNum of sprite getAt(ppl, 1) = 38 then
- setAt(bltx, count(bltx) + 1, 0)
- setAt(blty, count(blty) + 1, 15)
- set the locH of sprite getAt(bltsprite, count(bltx)) to the locH of sprite getAt(ppl, 1) - 27
- set the locV of sprite getAt(bltsprite, count(bltx)) to the locV of sprite getAt(ppl, 1) - 44
- else
- setAt(bltx, count(bltx) + 1, 0)
- setAt(blty, count(blty) + 1, -15)
- set the locH of sprite getAt(bltsprite, count(bltx)) to the locH of sprite getAt(ppl, 1) + 27
- set the locV of sprite getAt(bltsprite, count(bltx)) to the locV of sprite getAt(ppl, 1) - 80
- end if
- end if
- end if
- updateStage()
- end if
- end if
- end if
- end
-
- on westdown
- global fxpath, ppl, mnv
- if the keyCode > 122 then
- if the memberNum of sprite getAt(ppl, 1) > 35 then
- case the keyCode of
- 123:
- set the member of sprite getAt(ppl, 1) to member(2, 1)
- 124:
- set the member of sprite getAt(ppl, 1) to member(2, 1)
- 125:
- set the member of sprite getAt(ppl, 1) to member(12, 1)
- 126:
- set the member of sprite getAt(ppl, 1) to member(24, 1)
- end case
- setAt(mnv, 1, 100)
- end if
- case the keyCode of
- 123:
- sprite(getAt(ppl, 1)).flipH = 0
- 124:
- sprite(getAt(ppl, 1)).flipH = 1
- end case
- if sprite getAt(ppl, 1) intersects 25 and (sprite(10).visible = 0) and (the keyCode = 126) then
- sprite(9).visible = 1
- sprite(2).visible = 1
- set the constraint of sprite 8 to 22
- go(marker(0))
- else
- if sprite getAt(ppl, 1) intersects 25 and (sprite(10).visible = 1) and (the keyCode = 125) then
- sprite(10).visible = 0
- sprite(3).visible = 1
- set the constraint of sprite 8 to 21
- set the locV of sprite 8 to the locV of sprite 8 + 18
- go(marker(0))
- else
- if sprite getAt(ppl, 1) intersects 24 and (sprite(10).visible = 0) and (the keyCode = 126) then
- sprite(10).visible = 1
- set the constraint of sprite 8 to 23
- set the locV of sprite 8 to the locV of sprite 8 - 18
- go(marker(0))
- else
- if sprite getAt(ppl, 1) intersects 24 and (sprite(10).visible = 1) and (the keyCode = 125) then
- sprite(10).visible = 0
- set the constraint of sprite 8 to 21
- set the locV of sprite 8 to the locV of sprite 8 + 5
- go(marker(0))
- end if
- end if
- end if
- end if
- else
- if (the keyCode = 49) and (getAt(mnv, 1) > 10) then
- end if
- end if
- end
-